package cn.lcsjsxy.yxz.inheritance;

public class Student  extends Person{

    //5.22
    //     258

    /*String name;
    int age;*/
    String major;

    public Student() {

    }

    public Student(String name, int age) {
        this.name = name;
        this.age = age;
        this.major = major;
    }

    /*public void eat() {
        System.out.println("吃饭");
    }
    public void sleep() {
        System.out.println("睡觉");
    }*/
    public void  study(){
        System.out.println("学习");
    }
}